import axios from 'axios';
import qs from 'qs';

//用户注册
export function userReg(type,phoneNumber,password,verifyCode){
    let url='/member/reg';
    let data={
        type:type,
        mobile:phoneNumber,
        password:password,
        verifyCode:verifyCode
    }
    return axios.post(url,qs.stringify(data));
}